/* 标题 */
@import "./mixin";

.clearfix {
  @include clear();
}

.w_title {
  width: 1200px;
  margin: 0 auto;
}

.logo {
  width: 121px;
  margin-top: 18px;
  line-height: 0px;

  img {
    width: 100%;
  }
}

.log_point {
  width: 200px;
  margin-top: 18px;
  margin-right: 83px;
  line-height: 0px;

  img {
    width: 100%;
  }
}

/* 搜索 */
.w_search {
  width: 392px;
  position: relative;

  input {
    width: 276px;
    height: 38px;
    line-height: 40px;
    padding-left: 30px;
    padding-right: 8px;
    margin-top: 40px;
    border: 1px solid #d3d3d3;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 19px;
    border-bottom-left-radius: 19px;
    outline: none;
  }
}

.w_search_empty {
  cursor: pointer;
}

.w_search_btn {
  width: 72px;
  height: 40px;
  background-color: #333;
  color: #fff;
  text-align: center;
  line-height: 40px;
  border: none;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  position: absolute;
  bottom: 0px;
  cursor: pointer;
}

.w_search_frame {
  width: 316px;
  font-size: 12px;
  box-shadow: 0px 0px 3px #ccc;
  position: absolute;
  display: none;
  background-color: #fff;
  z-index: 9;

  ul {
    margin-left: 12px;
  }

  li {
    border: 1px solid #cc5252;
    border-radius: 4px;
    padding: 6px 7px;
    margin: 0px 10px 10px 0px;
    cursor: pointer;
  }
}

.w_frame_title {
  color: #ccc;
  line-height: 32px;
  padding: 0px 15px;
  margin-bottom: 5px;
}

.w_search_history {
  & > div {
    width: 292px;
    padding: 0px 12px;
    font-size: 14px;
    line-height: 36px;
    color: #333;
    cursor: pointer;

    &:hover {
      background-color: rgb(241, 241, 241);
      color: #cc5252;

      span {
        display: block;
        color: #bfbfbf;
      }
    }
  }

  span {
    display: none;
    float: right;
    display: none;
    float: right;
  }
}

/*
 全部商品*/
.w_products {
  width: 100%;
  background-color: rgb(255, 255, 255);
  margin-top: 20px;
  z-index: 99;
}

.w_all_products {
  width: 1200px;
  margin: 0 auto;
  background-color: #fff;
}

.title_eatures {
  display: none;
}

.title_search, .title_cart {
  width: 32px;
  text-align: center;
  line-height: 47px;
  font-size: 30px;
  margin-left: 20px;
  color: #999;
  position: relative;
  cursor: pointer;
}

.w_search_box {
  width: 233px;
  position: absolute;
  left: -278px;
  top: -6px;
  display: none;

  & > span {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: block;
    position: absolute;
    left: 5px;
    top: 15px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
  }

  input {
    width: 233px;
    height: 47.6px;
    line-height: 47.6px;
    border: none;
    padding: 0px 15px 0px 30px;
    outline: none;
  }
}

.title_search_frame {
  width: 278px;
  font-size: 12px;
  box-shadow: 0px 0px 3px #ccc;
  position: absolute;
  left: -278px;
  top: 47.3px;
  display: none;
  background-color: #fff;
  z-index: 9;

  ul {
    margin-left: 12px;
  }

  li {
    line-height: 18px;
    border: 1px solid #cc5252;
    border-radius: 4px;
    padding: 6px 7px;
    margin: 0px 10px 10px 0px;
    cursor: pointer;
  }
}

.title_search_tips {
  color: #ccc;
  line-height: 36px;
  padding: 0px 15px;
  margin-bottom: 5px;
  text-align: left;
}

.title_search_history {
  & > div {
    width: 253px;
    padding: 0px 12px;
    line-height: 36px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: left;

    &:hover {
      background-color: rgb(241, 241, 241);
      color: #cc5252;

      span {
        display: block;
        color: #bfbfbf;
      }
    }
  }

  span {
    display: none;
    float: right;
  }
}

.w_all_menu {
  width: 171px;
  line-height: 47.6px;
  font-size: 14px;
  padding: 0px 16px;
  margin-right: 20px;
  color: #fff;
  background-image: linear-gradient(-290deg, #cc5252 0, #b34747 100%);
}

.w_all_row {
  font-size: 14px;
  line-height: 14px;
  color: #333;

  li {
    padding: 13.5px 0px;
    margin-left: 24px;
    cursor: pointer;

    &:hover {
      border-bottom: 3px solid rgb(204, 82, 82);
    }
  }
}

/* 左侧商品菜单列 */
.w_left_menu {
  width: 202px;
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-600px);
  background-color: rgb(235, 235, 238);
  z-index: 9;
  box-shadow: 5px 0px 2px 0px rgba(131, 131, 131, 0.2), -5px 0px 2px -2px rgba(131, 131, 131, 0.2);
  text-align: left;
  display: none;

  & > ul {
    & > li {
      &:hover {
        .brand_list {
          display: block;
        }
      }
    }
  }
}

.w_left_menu_centont {
  font-size: 12px;
  height: 57.5px;
  color: #4d4d4d;
  line-height: 57.5px;
  padding: 0px 10px;
  border-left: 3px solid transparent;

  & > a {
    & > span {
      color: #666;
      margin-right: 3px;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  &:hover {
    border-left: 3px solid rgb(204, 170, 122);
    background-color: #fff;
  }
}

/* 右侧品牌列表 */
.brand_list {
  width: 998px;
  background-color: #fff;
  padding-top: 23px;
  border: 1px solid #ccc;
  position: absolute;
  left: 100%;
  top: 0px;
  display: none;

  .hot_word {
    span {
      display: inline-block;
      height: 36px;
      line-height: 36px;
      padding: 0 18px;
      border-radius: 18px;
      border: 1px solid #eee;
      font-size: 14px;
      color: #666;

      &:hover {
        background-color: #ccaa7a;
        color: #fff;
      }
    }
  }
}

.brand_list_tips {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  padding-left: 7px;
  margin-left: 24px;
  margin-bottom: 12px;
  border-left: 4px solid rgb(102, 102, 102);
}

.brand_list_content {
  width: 717px;
  max-height: 278px;
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 0px 28px 15px 24px;

  &::-webkit-scrollbar {
    width: 4px;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: rgba(216, 216, 216);
    border-radius: 4px;
  }

  & > li {
    width: 139px;
    border: 1px solid #e6e6e6;
    padding: 18.5px 0px;
    position: relative;

    &:hover {
      .w_content_name {
        display: block;
      }
    }
  }
}

.brand_list_image {
  width: 100px;
  height: 40px;
  margin: 0 auto;

  img {
    height: 100%;
  }
}

.hot_word {
  margin-top: 12px;
  margin-left: 24px;
}

/* 品牌遮罩名称 */
.w_content_name {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 79px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background-color: #ccaa7a;
  text-align: center;
}

.banner {
  height: 253px;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 20px;
}

/*  */
.commodity_content {
  width: 1200px;
  margin: 0 auto;
}

.commodity_right {
  width: 968px;
}

.commodity_title {
  width: 966px;
  border: 1px solid #e2e2e2;

  & > ul {
    & > li {
      height: 40px;
      border-bottom: 1px solid #eee;

      & > span {
        width: 56px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 600;
        color: #666;
        background-color: #fafafa;
        line-height: 40px;
      }
    }
  }
}

.commodity_title_top {
  width: 942px;
  padding: 5px 12px;
  background-color: #fafafa;

  & > div {
    &:first-child {
      font-size: 12px;
      line-height: 22px;
      color: #333;
    }

    &:nth-child(2) {
      height: 20px;
      font-size: 12px;
      line-height: 22px;
      border: 1px solid #dfdfdf;
      border-radius: 1px;
      padding: 0px 3px;
      margin-left: 5px;
      color: #313131;
      background-color: #fff;
      cursor: pointer;
    }
  }
}

.tips {
  &::after {
    content: "x";
    color: red;
    margin-left: 5px;
  }
}

.all_revoke {
  height: 20px;
  border: 1px solid #dfdfdf;
  background-color: #fff;
  color: #999;
  margin-right: 7px;
  margin-left: 5px;
  padding: 0px 3px;
  font-size: 12px;
  line-height: 20px;
}

.types {
  & > span {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    background-color: #333;
    padding: 2px 4px;
    margin: 9px 0 0 14px;
    cursor: pointer;
  }
}

.all_options {
  background-color: #fff;

  & > span {
    display: inline-block;
    font-size: 12px;
    padding: 2px 4px;
    margin: 9px 0 0 14px;
    cursor: pointer;
    color: #666;

    &:hover {
      background-color: #cc9952;
      color: #fff;
    }
  }
}

/* 头部照片 */
.commodity_top_photo {
  margin-top: 20px;

  li {
    width: 105px;
    font-size: 12px;
    margin-right: 16px;
    padding: 15px 0px;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #666;
    text-align: center;

    &:nth-child(8) {
      margin-right: 0px;
    }

    &:hover {
      color: #cc9952;
      border: 1px solid #cc9952;
    }
  }
}

.top_photo_img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  margin-bottom: 12px;

  img {
    width: 100%;
    height: 100%;
  }
}

.top_photo_txt {
  width: 48px;
  margin: 0 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* 大家喜欢看 */
.commodity_left {
  width: 208px;
}

.left_photo_top {
  width: 178px;
  margin: 0 auto;

  img {
    width: 100%;
  }
}

.goods_store_tilte {
  width: 202px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #666;
  background-color: #f1f1f1;
  padding-left: 6px;
  border: 1px solid #f1f1f1;
  font-weight: 600;
}

.every_like_goods {
  width: 208px;
  margin-top: 25px;
  border: 1px solid rgb(241, 241, 241);

  & > ul {
    padding: 28px 15px 0px 15px;
  }

  li {
    margin-bottom: 20px;
  }
}

.like_goods_img {
  width: 178px;
  text-align: center;

  img {
    width: 100%;
  }
}

.like_goods_price {
  margin-top: 5px;

  & > span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
  }

  & > del {
    font-size: 12px;
    color: #999;
  }
}

.like_goods_txt {
  width: 178px;
  font-size: 12px;
  color: #999;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 选项列表 */
.commodity_list {
  width: 100%;
  border-bottom: 1px solid #cfcfcf;
  margin-top: 20px;

  li {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 33px;
    margin: 0 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transform: translateY(1px);

    &:hover {
      color: #cc9952;
      border-bottom: 3px solid #cc9952;
    }
  }
}

.color-orange {
  color: #cc9952 !important;
  border-bottom: 3px solid #cc9952 !important;
}

.commodity_bottom_photo {
  margin-top: 20px;

  li {
    width: 210px;
    padding: 12px 8px;
    cursor: pointer;
    margin: 0px 20px 20px 0px;
    position: relative;

    &:hover {
      box-shadow: 0px 0px 5px 3px #d9d9d9;

      .commodity_cover {
        display: block;
      }
    }

    &:nth-child(4n) {
      margin-right: 0px;
    }
  }
}

.commodity_cover {
  position: absolute;
  bottom: 20px;
  background-color: #fff;
  display: none;
}

.add_collect, .add_cart {
  width: 100px;
  height: 28px;
  text-align: center;
  line-height: 28px;
  font-size: 12px;
  color: #333;
  border: 1px solid #e8e8e8;
}

.add_cart {
  color: #ff0000;
}

.bottpm_photo_img {
  width: 206px;
  height: 276px;

  img {
    width: 206px;
    height: 276px;
  }
}

.price {
  & > span {
    font-size: 18px;
    font-weight: 600;
    color: #ff0004;
  }

  & > del {
    font-size: 12px;
    font-weight: 600;
    color: #d1d1d1;
  }
}

.text {
  font-size: 12px;
  line-height: 18px;
  color: #666;
  margin-bottom: 4px;
  margin-top: 6px;
}

.tags {
  padding-bottom: 12px;

  & > p {
    &:first-child {
      font-size: 12px;
      line-height: 18px;
      background: #cc5252;
      color: #fff;
      margin-bottom: 4px;
      padding: 0 6px;
      border-radius: 2px;
    }

    &:nth-child(2) {
      font-size: 12px;
      line-height: 18px;
      background: linear-gradient(90deg, #f2dec2 0, #ffdfb3 100%);
      color: #666;
      margin-bottom: 4px;
      margin-left: 3px;
      padding: 0 6px;
      border-radius: 2px;
    }
  }
}

/* 右侧导航栏 */
.w_right_nav {
  position: fixed;
  right: 0px;
  bottom: 50px;
  border-radius: 5px;
  z-index: 9;
  box-shadow: 0 0 10px -3px #d6d4d4;

  .iconfont {
    width: 44px;
    height: 44px;
    background-color: #fff;
    text-align: center;
    line-height: 44px;
    font-size: 25px;
    cursor: pointer;
  }
}

.w_right_box {
  position: relative;

  &:hover {
    .w_right_cover {
      display: block;
    }
  }
}

.w_right_cover {
  width: 75px;
  height: 44px;
  line-height: 44px;
  color: #333;
  font-size: 12px;
  text-align: right;
  background: #f1f1f1;
  padding-right: 6px;
  position: absolute;
  right: 44px;
  bottom: 0;
  z-index: 99;
  white-space: nowrap;
  display: none;
}

.w_right_code {
  position: relative;
  //pointer-events: none;

  &:hover {
    .w_right_cover_img {
      display: block;
    }
  }
}

.w_right_cover_img {
  background: #f1f1f1;
  position: absolute;
  right: 44px;
  bottom: -44px;
  z-index: 2;
  transition: all 0.6s;
  font-size: 12px;
  color: #333;
  margin-top: 10px;
  padding: 20px;
  line-height: 16px;
  display: none;
  text-align: center;
}

#shopListItem{
  position: relative;
}

#yaofeng {
  position: absolute;
  bottom: 135px;
  left: 9px;
  width: 206px;
  height: 71px;
}
